<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/mall/CampHouseOrder.js此处编写
 -->
<template>
    <div>
        <view-grid
                   ref="grid"
                   :columns="columns"
                   :detail="detail"
                   :editFormFields="editFormFields"
                   :editFormFileds="editFormFields"
                   :editFormOptions="editFormOptions"
                   :searchFormFields="searchFormFields"
                   :searchFormFileds="searchFormFields"
                   :searchFormOptions="searchFormOptions"
                   :table="table"
                   :extend="extend">
        </view-grid>
    </div>
</template>

<script>
    import extend from "@/extension/mall/CampHouseOrder.js";
    import ViewGrid from "@/components/basic/ViewGrid.vue";
    var vueParam = {
        components: {
            ViewGrid
        },
        data() {
            return {
                table: {
                    key: 'id',
                    footer: "Foots",
                    cnName: '预定订单',
                    name: 'CampHouseOrder',
                    url: "/CampHouseOrder/",
                    sortName: "createDate"
                },
                extend: extend,
                editFormFields: {},
                editFormOptions: [],
                searchFormFields: {"bookingName":"","bookingPhone":"","orderNumber":"","pay_type":"","status":"",ticketsCode:"",createDate:''},
                searchFormOptions: [[{"title":"订单号","field":"orderNumber","type":"like"},
                                    {"title":"支付方式","field":"pay_type","type":"text"},
                                    {"title":"预订人姓名","field":"bookingName","type":"like"}],
                                    [{"title":"预订手机号","field":"bookingPhone","type":"like"},
                                    {"title":"订单状态","field":"status","type":"text"},
                                    {"title":"取票号","field":"ticketsCode","type":"text"}],
                                [{ "title": "支付时间", "field": "createDate", "type": "datetime" }]],
                columns: [
                        {field:'parentNumber',title:'父订单号',type:'string',width:220,align:'left'},
                        {field:'orderNumber',title:'订单号',type:'string',width:220,align:'left'},
                        {field:'ticketsCode',title:'取票号',type:'string',width:220,align:'left'},
                        {field:'houseType',title:'房型',type:'int',width:80,align:'left',bind: {key:"",data: []}},
                       {field:'orderPrice',title:'订单金额',type:'decimal',width:90,align:'left'},
                       {field:'pay_type',title:'支付方式',type:'int',width:90,align:'left',bind: {key:"PaymentMethod",data: []}},
                       {field:'reservationType',title:'预定类型',type:'int',width:90,align:'left',bind: {key: '',data: [{key: "0",value: "线上预订"},{key: "1",value: "门店下单"}]}},
                       {field:'status',title:'订单状态',type:'int',width:90,align:'left',bind: {key:"campHouseOrderStatus",data: []}},
                       {field:'isUse',title:'是否使用',type:'int',width:90,align:'left',bind: {key:"isuseStatus",data: []}},
                       {field:'bookingName',title:'预订人姓名',type:'string',width:100,align:'left'},
                       {field:'bookingPhone',title:'预订手机号',type:'string',width:100,align:'left'},
                       {field:'bookingType',title:'预订人证件类型',type:'string',width:100,align:'left',bind: {key:'certificate_type',data:[]}},
                       {field:'bookingIdCard',title:'预订人证件号',type:'string',width:220,align:'left',sortable:true},
                    //    {field:'id',title:'id',type:'int',width:90,hidden:true,readonly:true,require:true,align:'left'},
                    //    {field:'uid',title:'guid',type:'string',width:220,align:'left'}
                    ],
                detail: {
                    cnName:"#detailCnName",
                    columns: [],
                    sortName: "",
                    key:""
                }
            };
        }
    };
    export default vueParam;
</script>
